<template>
  <div>
    <Header />
    <router-view></router-view>
    <Footer />
  </div>
</template>

<script>
import Header from "@comp/Header";
import Footer from "@comp/Footer";
import { mapActions } from "vuex";
export default {
  name: "App",
  components: {
    Header,
    Footer,
  },
  methods:{
    ...mapActions("category", ["getCategoryListAsync"]),

  },
  mounted(){
    // 在App中获取三级分类列表，避免重复请求数据
    this.getCategoryListAsync();
  }
};
</script>

<style>
</style>